package com.senven.books.modules.booksManager.service;

import com.senven.books.modules.booksManager.entity.Book;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.senven.books.modules.booksManager.entity.param.BookParam;
import com.senven.books.modules.booksManager.entity.vo.BookVo;

import java.util.List;

/**
 * @author : longshengyi
 * @description :
 * @createDate : 2024/7/23 0:51
 */
public interface BookManagerService extends IService<Book> {

    public int createBook(Book book);

    public int updateBookBook(Book book);

    public int deleteById(Long id);

    public BookVo getBookVoById(Long id);

    List<BookVo> getBookList(String id);

    IPage<BookVo> getBooksByPage(Page<BookVo> page, BookParam param);

}
